const MyBaseController = require('./MyBaseController');

// const {
// 	Controller
// } = require('egg');

class SearchController extends MyBaseController {
   
    async select() {
        const keyword=this.ctx.params.keyword;
        if(keyword===null||keyword.trim()==='')
        {
            throw new Error('关键字不能为空');
        }
        const res = await this.service.search.select(keyword)
        this.success(res)
    }

  
}

module.exports = SearchController;